//
//  MK_LivingRoomModel.m
//  miku直播
//
//  Created by 杨尚达 on 2017/7/26.
//  Copyright © 2017年 杨尚达. All rights reserved.
//

#import "MK_LivingRoomModel.h"

#import <YYModel/YYModel.h>

@implementation MK_IconData

#pragma mark - YYModel自定义属性 -
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
    
    return @{
             @"status"          :   @"status",
             @"iconUrl"         :   @"icon_url",
             @"iconWidth"       :   @"icon_width",
             @"iconHeight"      :   @"icon_height"
             };
}

@end

@implementation MK_LiveRoomCDN

#pragma mark - YYModel自定义属性 -
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
    
    return @{
             @"name"            :   @"name",
             @"cdn"             :   @"cdn"
             };
}


@end

@implementation MK_LivingRoomModel

#pragma mark - YYModel HMLiveRoom 自定义属性 -
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper {
    
    return @{
             @"roomID"              :   @"room_id",
             @"roomSrc"             :   @"room_src",
             @"picURL"              :   @"vertical_src",
             @"isVertical"          :   @"isVertical",
             @"cateId"              :   @"cate_id",
             @"roomName"            :   @"room_name",
             @"vodQuality"          :   @"vod_quality",
             @"showStatus"          :   @"show_status",
             @"subject"             :   @"subject",
             @"showTime"            :   @"show_time",
             @"ownerUid"            :   @"owner_uid",
             @"nickname"            :   @"nickname",
             @"online"              :   @"online",
             @"gameName"            :   @"game_name",
             @"childId"             :   @"child_id",
             @"avatarMid"           :   @"avatar_mid",
             @"avatarSmall"         :   @"avatar_small",
             @"jumpUrl"             :   @"jumpUrl",
             @"iconData"            :   @"icon_data",
             @"cdns"                :   @"cdns"
             };
}

- (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass{
    return @{
             @"cdns"        :   [MK_LiveRoomCDN class]
             };
}

@end
